//Page Object
Page({
  data: {
    radio:0
  },
  //options(Object)
  onLoad: function(options){
   
    
  },
  startAni(){
    // @ts-nocheck
    this.animate('#container', [
      { opacity: 1.0, rotate: 0, backgroundColor: '#FF0000' },
      { opacity: 0.5, rotate: 45, backgroundColor: '#00FF00'},
      { opacity: 0, rotate: 90, backgroundColor: '#FF0000' },
      ], 2000, function () {
        // @ts-ignore
        this.clearAnimation('#container', { opacity: true, rotate: true }, function () {
          console.log("清除了#container上的opacity和rotate属性")
        })
    }.bind(this))
  },
  startAni2(){
    this.animate('#container2', [
      { scale: [1, 1], rotate: 0, ease: 'ease-out'  },
      { scale: [1.5, 1.5], rotate: 45, ease: 'ease-in', offset: 0.9},
      { scale: [2, 2], rotate: 90 },
    ], 2000, function () {
      // @ts-ignore
      this.clearAnimation('#container2', function () {
        console.log("清除了.block上的所有动画属性")
      })
    }.bind(this))
  }

  
});